#include<stdio.h>
int main()
{
	int n;
	scanf("%d",&n);
	int arr[99];
	int t=0;
	while(n)
	{
		arr[t++]=n%2;
		n/=2;
	}
	for(int i=t-1;i>=0;i--)
	{
		printf("%d",arr[i]);
	}
 } 
